
import ajax from '@/utils/ajax'
import dialog from '@/utils/dialog'

export default function (query) {
  return ajax({
    url: `/a/order/detail?id=${query.id}`,
    data: {
      id: query.id
    }
  }).then(data => data || {}).catch(() => dialog.showToast('请求失败'))
}
